
import '../utils/Settings.dart';
import '../utils/dio/DioMethod.dart';
import '../utils/dio/DioUtil.dart';

class RepairApi{

  ///查询设备报修记录
  static const repairListUrl = "${Settings.appServer}/ThEqRepairController/page";

  ///设备报修URL
  static const repairUrl = "${Settings.appServer}/ThEqRepairController/repair";

  ///设备维修URL
  static const maintainUrl = "${Settings.appServer}/ThEqRepairController/maintain";


  ///设备报修
  static dynamic repair (formData)async{
    return await DioUtil.getInstance().request(repairUrl,method: DioMethod.post,data: formData);
  }

  ///设备维修
  static dynamic maintain (formData)async{
    return await DioUtil.getInstance().request(maintainUrl,method: DioMethod.post,data: formData);
  }


}